﻿using System;
using RpcModel;

namespace Wedonek.RpcStore.Gateway.Model
{
        public class RunState
        {
                /// <summary>
                /// 服务节点Id
                /// </summary>
                public long ServerId
                {
                        get;
                        set;
                }
                /// <summary>
                /// 服务名
                /// </summary>
                public string ServerName
                {
                        get;
                        set;
                }
                /// <summary>
                /// 是否在线
                /// </summary>
                public bool IsOnline
                {
                        get;
                        set;
                }
                /// <summary>
                /// 是否是容器
                /// </summary>
                public bool IsContainer
                {
                        get;
                        set;
                }
                /// <summary>
                /// 服务状态
                /// </summary>
                public RpcServiceState ServiceState
                {
                        get;
                        set;
                }
                /// 进程编号
                /// </summary>
                public int Pid
                {
                        get;
                        set;
                }
                /// <summary>
                /// 进程名
                /// </summary>
                public string PName { get; set; }
                /// <summary>
                /// 链接数
                /// </summary>
                public int ConNum { get; set; }
                /// <summary>
                /// 工作内存
                /// </summary>
                public long WorkMemory { get; set; }
                /// <summary>
                /// CPU占用时间
                /// </summary>
                public int CpuRunTime { get; set; }
                /// <summary>
                /// 数据最后同步时间
                /// </summary>
                public DateTime SyncTime { get; set; }
                /// <summary>
                /// 进程启动时间
                /// </summary>
                public DateTime StartTime { get; set; }
        }
}
